using System;
using System.Collections.Generic;
using System.Text;

namespace GridAndCurve
{
    internal static class CurveDrawConfig
    {
        public static int[] PointID = null;
        public static string[] PointAlias = null;
        public static int CollectInterval = 30;
        public static string GraphName = "";
        public static bool EnableZoom = false;
        public static bool EnableHorizontalZoom = false;
        public static bool EnbaleVerticalZoom = false;
        public static bool Selectable = false;
        public static bool EnableMenuList = false;
        public static bool EnableHorizontalPan = false;
        public static bool EnableVerticalPan = false;
    }

    internal static class HisPara
    {
        public static CurveType CurrentCurveType = CurveType.Custom;
        public static DateTime CurrentSelectedDate = DateTime.Now;
    }

    internal enum CurveType
    {
        Day,
        Month,
        Year,
        Custom
    }
    internal struct Statistic
    {
        public int Count;
        public int Interval;
        public DateTime StartTime;
        public DateTime EndTime;
        public double Avg;
        public double Total;
        public int MinID;
        public DateTime MinTime;
        public double MinValue;
        public int MaxID;
        public DateTime MaxTime;
        public double MaxValue;
        public string Name;
        public string Unit;
    }
}
